package com.tansty.web.controller;

import com.tansty.common.utils.CommonUtil;
import com.tansty.pojo.dto.RoleDTO;
import com.tansty.pojo.vo.ResultVO;
import com.tansty.service.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * description:  <br>
 * date: 2021/9/3 20:43 <br>
 * author: ztz <br>
 * version: 1.0 <br>
 */
@RestController
@RequestMapping("/role")
public class RoleController {
    @Autowired
    RoleService roleService;

       @GetMapping("/users")
       public ResultVO getUserAllRole(){
        return CommonUtil.ajaxReturn(roleService.getUserAllRole());
       }

}
